﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;

namespace DAL.Service
{
    public interface ILibraryBookIndentService:IBaseService
    {
        IList getLibraryBookName(int indentid);
        IList getLibraryBookIndent(string in_s, string in_e, int pageno, int pagesize, int state, string card, string isbn, string indent, string name, string bookName);
        IList getLibraryBookIndent(string in_s, string in_e, int pageno, int pagesize, int state, string name, string bookName, string author, string press);

        /// <summary>
        /// 返回单张充值卡已借书次数
        /// </summary>
        /// <param name="ucid">充值卡ID</param>
        /// <returns></returns>
        int getTimes(int ucid);
        /// <summary>
        /// 返回用户当前手持书本量
        /// </summary>
        /// <param name="uid">用户ID</param>
        /// <returns></returns>
        int getUserHaveBooks(int uid);

        int updateIndentState(int id, int state);
        int getIndentCountByUcid(int ucid);
        int getCountByBookIdUid(int bookid, int uid);
        IList LibraryBookIndentDetail(int pageno, int pagesize, int uid);
        int recommend(int id);
        int appraisal(int id, string appraisal);

        IList indent(string lbid, string ip, string ucid, int uid);
        IList ReturnBook(string lbi_id, int lbi_stateN, int lbi_stateO, int operUid);
    }
}
